package com.wangijun.yuan.core.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wangijun.yuan.core.model.em.ReportTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 举报记录表
 */
@Schema(description = "举报记录表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "report_info")
public class ReportInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 被举报评论内容
     */
    @TableField(value = "`comment`")
    @Schema(description = "被举报评论内容")
    private String comment;

    /**
     * 举报数据ID
     */
    @TableField(value = "report_data_id")
    @Schema(description = "举报数据ID")
    private Long reportDataId;

    /**
     * 举报原因
     */
    @TableField(value = "reason")
    @Schema(description = "举报原因")
    private String reason;

    /**
     * 举报类型
     */
    @TableField(value = "report_type")
    @Schema(description = "举报类型")
    private ReportTypeEnum reportType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @Schema(description = "创建人ID")
    private Long createBy;
    @Serial
    private static final long serialVersionUID = 1L;
}